<?php
/**
 * Created by PhpStorm.
 * User: 钟旺
 * Date: 2019/3/25
 * Time: 14:34
 */

namespace App\Validator;


class LoginValidator extends BaseValidator
{
    protected $scene = [
        'login' => ['title' => 'required|max:255|min:3', 'body' => 'required']
    ];
    protected $msg = [
        'title.required' => '用户名不能为空',
        'body.required' => '密码不能为空',
        'title.min'=>'用户名最小3位'
    ];

}